Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

done #192

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

done #192

wants to merge 4 commits into from

Conversation

ChabVlad
Copy link

No description provided.

Copy link

@Elena-Bruyako Elena-Bruyako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some minor mistakes

@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(nullable = false)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add unique constraint


@RequiredArgsConstructor
@Service
public class PullDataServiceImpl implements PullDataService {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public class PullDataServiceImpl implements PullDataService {
public class CharacterClientImpl implements CharacterClient {


@RequiredArgsConstructor
@Component
public class RickAndMortyClientImpl implements RickAndMortyClient {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public class RickAndMortyClientImpl implements RickAndMortyClient {
public class CharacterServiceImpl implements CharacterService {

@RequiredArgsConstructor
@Service
public class PullDataServiceImpl implements PullDataService {
@Value("https://rickandmortyapi.com/api/character")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Value("https://rickandmortyapi.com/api/character")
@Value("${rick-and-morty.url}")

add rick-and-morty.url=https://rickandmortyapi.com/api/character to application.properties

import org.springframework.web.client.RestTemplate;

@RequiredArgsConstructor
@Service

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Service
@Component

Comment on lines 10 to 12
public long count();

public List<CharacterRickAndMorty> findByNameContaining(String name);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public long count();
public List<CharacterRickAndMorty> findByNameContaining(String name);
long count();
List<CharacterRickAndMorty> findByNameContaining(String name);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants